<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>

<body>
<script>


var s ="ab=21,bc=45,cd=43";
var r = /(\w+)=(\d*)/;
var a = s.match(r);		// 返回数组["ab=21" , "ab","21"]



</script>
</body>
</html>
